package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.ExamAppointment;
import com.ruoyi.app.mapper.ExamAppointmentMapper;
import com.ruoyi.app.service.ExamAppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
* @author 75460
* @description 针对表【exam_appointment(体检预约表)】的数据库操作Service实现
* @createDate 2025-05-22 09:00:31
*/
@Service
public class ExamAppointmentServiceImpl implements ExamAppointmentService{
    @Autowired
    ExamAppointmentMapper examAppointmentMapper;
    @Override
    public void saveExamAppointment(@RequestBody ExamAppointment examAppointment) {
        examAppointmentMapper.saveExamAppointment(examAppointment);
    }

    @Override
    public List<ExamAppointment> list(Integer states) {
        return examAppointmentMapper.list(states);
    }

    @Override
    public ExamAppointment getById(Integer id) {
        return examAppointmentMapper.getById(id);
    }

    @Override
    public void updateExamApp(ExamAppointment examAppointment) {
        examAppointmentMapper.updateExamApp(examAppointment);
    }

    @Override
    public void deleteExamApp(Long id) {
        examAppointmentMapper.deleteExamApp(id);
    }
}




